package flc.ast.fragment;

import android.content.Intent;
import android.os.Bundle;

import androidx.fragment.app.Fragment;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import flc.ast.R;
import flc.ast.activity.SelPicActivity;
import flc.ast.databinding.FragmentPlacardBinding;
import flc.ast.utils.Content;
import stark.common.basic.base.BaseNoModelFragment;
import stark.common.basic.event.EventStatProxy;

/**
 * A simple {@link Fragment} subclass.
 * Use the {@link PlacardFragment#newInstance} factory method to
 * create an instance of this fragment.
 */
public class PlacardFragment extends BaseNoModelFragment<FragmentPlacardBinding> {


    @Override
    protected int onCreate() {
        return R.layout.fragment_placard;
    }

    @Override
    protected void initView() {
        EventStatProxy.getInstance().statEvent1(getActivity(), mDataBinding.event1Container);
        mDataBinding.ivPlacard1.setOnClickListener(this);
        mDataBinding.ivPlacard2.setOnClickListener(this);
        mDataBinding.ivPlacard3.setOnClickListener(this);
        mDataBinding.ivPlacard4.setOnClickListener(this);
        mDataBinding.ivPlacard5.setOnClickListener(this);
        mDataBinding.ivPlacard6.setOnClickListener(this);
        mDataBinding.ivPlacard7.setOnClickListener(this);
    }

    @Override
    protected void onClickCallback(View v) {
        Intent intent = new Intent(mContext, SelPicActivity.class);
        intent.putExtra(Content.Flag, Content.Placard);
        startActivity(intent);
    }

    @Override
    protected void initData() {

    }
}